<%--
  Created by IntelliJ IDEA.
  User: nico
  Date: 01/10/12
  Time: 16:29
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:textfield label="Description" name="dataSafety.description" id="description" value="%{dataSafety.description}"  />

<s:hidden  name="dataSafety.dated" id="altdated" value="%{dataSafety.dated}"/>
<s:textfield label="Dated" id="dated" cssClass="datepicker"/>

<s:hidden  name="dataSafety.sentToSite" id="altsentToSite" value="%{dataSafety.sentToSite}"/>
<s:textfield label="Sent to Site" id="sentToSite" cssClass="datepicker"/>

<s:select label="Scope" name="dataSafety.scope" id="scope"  value="%{dataSafety.scope}"
          list="#{'1':'Site', '2':'Multi-site'}"/>

<s:hidden  name="dataSafety.sentToExternalEc" id="altsentToExternalEc" value="%{dataSafety.sentToExternalEc}"/>
<s:textfield label="Sent to external EC" id="sentToExternalEc" cssClass="datepicker"/>

<s:hidden  name="dataSafety.sentToLocalEc" id="altsentToLocalEc" value="%{dataSafety.sentToLocalEc}"/>
<s:textfield label="Sent to Local EC" id="sentToLocalEc" cssClass="datepicker"/>

<s:hidden  name="dataSafety.sentToTc" id="altsentToTc" value="%{dataSafety.sentToTc}"/>
<s:textfield label="Sent to Teaching Committee" id="sentToTc" cssClass="datepicker"/>

<s:hidden  name="dataSafety.sentToMoh" id="altsentToMoh" value="%{dataSafety.sentToMoh}"/>
<s:textfield label="Sent to MOH" id="sentToMoh" cssClass="datepicker"/>

<s:hidden  name="dataSafety.approvalMoh" id="altapprovalMoh" value="%{dataSafety.approvalMoh}"/>
<s:textfield label="MOH Approved/Notified" id="approvalMoh" cssClass="datepicker"/>

<s:hidden  name="dataSafety.sentToCcis" id="altsentToCcis" value="%{dataSafety.sentToCcis}"/>
<s:textfield label="Sent to CCIS if the site is located in Pcia. Bs. As." id="sentToCcis" cssClass="datepicker"/>

<tr>
    <td colspan="2" style="text-align: center">
        <s:submit value="Save" id="dataSafetySave" action="dataSafetySave" onclick="setEmptyDates();validate();beforeSave();" theme="simple" />
    </td>
</tr>

<s:if test="dataSafety.id != null">
    <tr>
        <td colspan="2" style="text-align: center">
            <button id="dataSafetyClear" onclick="$('#category').change(); $('html, body').animate({ scrollTop:  $('#category').offset().top - 15 }); return false;">Clear</button>
        </td>
    </tr>
</s:if>
<s:hidden name="dataSafety.id" value="%{dataSafety.id}"/>

<script>
    inicializarTodaFecha();
</script>
<s:if test="dataSafety.id != null">
    <script type="text/javascript">
        $('#scope').parent().parent().remove();
    </script>
</s:if>